<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>用户管理</title>
	<script type="text/javascript">
	
	var province;
	var locationId;
	province='${locationId}';
	locationId='${hospital.locationId}';
	</script>
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/default.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/easyui/themes/default/easyui.css" />
    <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/js/easyui/themes/icon.css" />
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/common/Date.js"></script>
    <script type="text/javascript" src="${pageContext.request.contextPath}/js/page/hospital/hospitalAdd.js"></script>
</head>
<body>
<table id="gridUser" >
	<thead>
		<tr>
		
			<th data-options="field:'name',width:100">科室名称</th>
			<th data-options="field:'description',width:160">科室简介</th>
			<th data-options="field:'createDate',width:135">创建时间</th>
			<th data-options="field:'id',width:100,formatter:optColumn" align="center">操作</th>
		</tr>
	</thead>
</table>
<!-- 工具栏-start -->
<div id="tbUser" style="padding:5px;height:auto">
		<div data-options="region:'center'" style="padding:10px;">
		<input id="txtfrmUser" name="txtfrmUser" type="hidden" value="${status}"/>
			<form id="frmUser" method="post">
				<table >
	    		<tr>
	    			<td  align="right">医院名称：</td>
	    			
	    			<td>
	    				<input id="txthospitalId" type="hidden"  name="id" value="${ hospital.id}" data-options="required:true"/>
	    					<input id="name"  class="easyui-textbox" type="text"  name="name" value="${ hospital.name}" data-options="required:true"/>
	    			</td>
	    			
	    			<td align="right">区域：</td>
	    			<td>
	    				省份：
	    				<select id="province"  name="dept"  onchange="createSelCity()" data-inline="true" data-mini="true" style="width:200px;" >   
                        <option value="">请选择</option>   	
                       </select>  
                                                                                  市：
                	  <select id="locationId"  name="locationId" data-inline="true" data-mini="true" style="width:200px;">   
                        <option value="">请选择</option>   	
                       </select>       
	    			</td>

	    		</tr>
	    		<tr>
	    			<td align="right">地址：</td>
	    			<td>
	    				<input id="txtAddress" class="easyui-textbox" type="text"  name="address" style="width: 200px;" value="${ hospital.address}" data-options="required:true"/>
	    			</td>
	    			<td align="right">医院管理员：</td>
	    			<td>
	    				<select id="selHospitalManager" name="managerUserId" class="easyui-combobox" data-options="valueField:'id',textField:'nickname',url:'../user/list?roleIds=4'" style="width: 100px;"></select>
	    			</td>
	    		</tr>
	    		<tr>
	    			<td align="right">医院介绍：</td>
	    			<td >
	    			   <textarea name="description" id="description" cols="" rows="" style="width: 300px; height:100px;">${ hospital.description}</textarea>
	    			</td>
	    		</tr>
	    		<tr><td>
	    		<input name="button" type="button" onclick="javascript:jsFrmUser();" value="保存" />
	    		</td></tr>
	    		</table>
			</form>
		</div>
	<div style="margin-bottom:5px">
		<a href="javascript:dlgUserOpenAdd();" class="easyui-linkbutton" data-options="iconCls:'icon-add'" plain="true" title="添加"></a>
	</div>
</div>
<!-- 工具栏-end -->

<!-- 编辑用户对话框-start -->
<div id="dlgUser" class="easyui-dialog" title="用户管理" data-options="modal:true,closed:true" style="width:530px;height:420px;padding:5px;">
	<div class="easyui-layout" data-options="fit:true">
		<div data-options="region:'center'" style="padding:10px;">
			<div style="display: none;">
			<input id="txtOpType" name="opType" type="hidden" value="add"/>
			<input id="txtUserNameOld" type="hidden" />
			</div>
			<form id="frmDepartment" method="post">
			<input id="textcreateDate" type="hidden"  name="createDate"/>
			<input id="HospitalDepartmentId" type="hidden"  name="id"/>
			<input id="texthospitalId" type="hidden"  name="hospitalId"/>
				<table>
	    		<tr>
	    			<td width="100px;" align="right">科室名称：</td>
	    			<td>
	    				<input id="textname" class="easyui-textbox" type="text"  name="name"  style="width: 145px;" data-options="required:true"/>
	    			</td>
	    			<td width="100px;" align="right">&nbsp;</td>
	    			<td>&nbsp;</td>
	    		</tr>
	    		<tr>
	    			<td align="right">科室描述：</td>
	    			<td >
	    			   <textarea name="description" id="textdescription" cols="" rows="" style="width: 300px; height:100px;"></textarea>
	    			</td>
	    		</tr>

	    		</table>
			</form>
		</div>
		<div data-options="region:'south',border:false" style="text-align:center;padding:5px 0 0;">
			<a class="easyui-linkbutton" data-options="iconCls:'icon-ok'" href="javascript:submitForm();" style="width:80px">确定</a>
			<a class="easyui-linkbutton" data-options="iconCls:'icon-cancel'" href="javascript:dlgUserCancel();" style="width:80px">取消</a>
		</div>
	</div>
</div>

</body>
</html>